package com.cashmama.market.api.application.controller.risk.response;

import com.cashmama.market.api.domain.vo.aadhaar.AdvanceLivenessDetectionLicence;
import com.cashmama.market.api.infras.handler.ResponseData;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-12-08 14:20
 **/
public class AdvanceLivenessDetectionLicenseVO implements ResponseData {

    /**
     * 使用advance检测
     */
    private boolean useAdvanceDetection;
    /**
     * 签名
     */
    private String license;
    /**
     * 过期时间戳毫秒
     */
    private long expireTimestamp;

    public AdvanceLivenessDetectionLicenseVO() {
    }

    public AdvanceLivenessDetectionLicenseVO(AdvanceLivenessDetectionLicence advanceLivenessDetection, boolean useAdvanceDetection) {
        this.license = advanceLivenessDetection.getLicense();
        this.expireTimestamp = advanceLivenessDetection.getExpireTimestamp();
        this.useAdvanceDetection = useAdvanceDetection;
    }

    public boolean isUseAdvanceDetection() {
        return useAdvanceDetection;
    }

    public AdvanceLivenessDetectionLicenseVO setUseAdvanceDetection(boolean useAdvanceDetection) {
        this.useAdvanceDetection = useAdvanceDetection;
        return this;
    }

    public String getLicense() {
        return license;
    }

    public AdvanceLivenessDetectionLicenseVO setLicense(String license) {
        this.license = license;
        return this;
    }

    public long getExpireTimestamp() {
        return expireTimestamp;
    }

    public AdvanceLivenessDetectionLicenseVO setExpireTimestamp(long expireTimestamp) {
        this.expireTimestamp = expireTimestamp;
        return this;
    }
}
